Skip to main content

PUT Existing Live Video

Overview


The table below provides key details about the PUT method for updating a Live Video.

PUT Existing Live Video
MethodPUT
URL or Endpoint/api/v1/projectId/live-videos
HeadersAuthorization
ParametersprojectId
Request BodyPublicId, Title, Description, PublishDate, PublishEndDate

The description of the URL parameter is as follows:

projectId URL Parameter
URL Parameter NameprojectId
MandatoryYes
Typestring
DescriptionUnique Id of the project.

Request Body

The description of the body parameters is as follows:

Parameter NameMandatoryTypeDescription
PublicIdYesstringPublic identifier of the live video
TitleYesstringTitle of the live video
DescriptionNostringDescription of the live video
PublishDateNostring($date-time)The date and time when the video is scheduled to be published.
PublishEndDateNostring($date-time)The date and time when the publication of the video is set to end.

Response

{
"success": true,
"errors": [],
"messages": [],
"result": {
"publicId": "{publicId}",
"id": "{publicId}",
"name": null,
"title": "{title}",
"description": "{description}",
"playbackUrl": "",
"thumbnail": "",
"channelPublicId": "{channelId}",
"channelName": null,
"channelTitle": null,
"liveStatus": null,
"author": "{author}",
"publishDate": "2024-05-23T10:00:00",
"publishEndDate": null,
"canCutAndPublish": false,
"canStopAndCut": false
},
"resultInfo": null,
"statusCode": 200
}

Information about the fields that appear when you receive the response are displayed in the table below.

Field NameTypeDescription
successboolIf the response is successful, it will return true. Otherwise, it will return false.
errorsarray[]Indicates if there was an error.
messagesarray[]Returns the response message from the back-end.
resultarray[Object]Returns the response object.
publicIdstringReturns the public identifier of the live video.
idstringReturns the identifier of the live video.
namestringReturns a guid that is randomly generated.
titlestringReturns the title of the live video.
descriptionstringReturns the description of the live video.
playbackUrlstringReturns a file URL where the livestream can be accessed for playback.
channelPublicIdstringReturns the public identifier of the channel.
channelNamestringReturns the name of the channel.
channelTitlestringReturns the title of the channel.
liveStatusstringIndicates the live status of the live video.
authorstringReturns the author of the live video.
publishDatestring($date-time)Returns the date and time when the video was created.
publishEndDatestring($date-time) or nullReturns the date and time when the publication of the video is set to end.
hasCustomDatebooleanReturns whether a custom start and end date has been set for the video.
startDateUTCstring($date-time)Returns the date and time in UTC when the video is scheduled to start being available.
endDateUTCstring($date-time) or nullReturns the date and time in UTC when the video is scheduled to end.
countdownEnabledbooleanReturns whether a countdown timer is enabled for the video.
countdownSecondsinteger($int32)Returns the duration of the countdown timer in seconds.
canCutAndPublishbooleanReturns a value indicating if the video can be cut and published.
canStopAndCutbooleanReturns a value indicating if the video can be stopped and cut.
resultInfostringReturns extra information about the result. (May be null)
statusCodeinteger($int32)Returns the HTTP Status Code.

If the action is successful, the service sends back an HTTP 200 or 201 response.

Errors

For information about the errors that are common to all actions, see Common Errors:

  • HTTP Status Code 400: Bad Request

  • HTTP Status Code 401: Unauthorized

  • HTTP Status Code 403: Forbidden

  • HTTP Status Code 404: Result Not Found

  • HTTP Status Code 500: Internal Server Error

  • HTTP Status Code 503: Backend Fetch Failed